package com.pluszg.nutrition.api.controller.order;

import com.pluszg.nutrition.common.resp.CommonResponse;
import com.pluszg.nutrition.model.order.Order;
import org.springframework.web.bind.annotation.*;


@RequestMapping("/order")
public interface OrderController {

    @PostMapping("/submit")
    CommonResponse<Order> submit(@RequestBody Order order);

    @GetMapping("/{id}")
    CommonResponse<Order> findById(@PathVariable("id")  String id);


    @PostMapping("/create")
    CommonResponse<Order> create(@RequestBody Order order);

}
